package com.qyl.honghengshop.controller.customer;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.qyl.honghengshop.dto.Address;
import com.qyl.honghengshop.service.AddrdessService;
import com.qyl.honghengshop.service.impl.AddressServiceImpl;

@Controller
@RequestMapping("/customer/address")
public class AddressController {

	private AddrdessService addressService = new AddressServiceImpl();
	
	@RequestMapping("/getDefaultAddress")
	@ResponseBody
	public Address getDefaultAddress(){
		
		Address address = addressService.getDefaultAddress();
		
		return address;
		
	}	
}
